package com.insigma.common.exception;

import com.insigma.dto.enums.SysCode;

public class RestException extends java.lang.Exception{

	private static final long serialVersionUID = 1L;
	
	private SysCode syscode;

	public RestException(SysCode syscode) {
		super(syscode.getCodemsg());
		this.syscode = syscode;
	}
	
	public SysCode getSysCode(){
		return syscode;
	}
}
